﻿using WpfApp1.Acme.ApplicationAttribute;
using WpfApp1.Exmple.UserController;

namespace WpfApp1.Exmple.UserService {
    [Component]
    internal class UserService {
        [Autowired]
        private User user;
        [Autowired("testView")]
        private Controller controller;
        
        public  Controller getUser() {
            controller.UserName = controller.UserName;
            controller.Password = controller.Password;
            //UserMapper userMapper = (UserMapper)ApplicationContext.getBean("userMapper");
            //Debug.WriteLine("UserServer: " + controller.GetHashCode());
            //userMapper.testDB();
            return controller; 
        }

    }
}
